﻿using System;
using fastCSharp;
using fastCSharp.code.cSharp;

namespace diantou.dataModel.path
{
    /// <summary>
    /// 企业考试问题
    /// </summary>
    public struct examQuestion
    {
        /// <summary>
        /// 企业考试问题标识
        /// </summary>
        public int Id;
        /// <summary>
        /// 格式化URL
        /// </summary>
        /// <param name="name">页面名称/类型</param>
        /// <returns></returns>
        private webView.hashUrl get(string name)
        {
            return new webView.hashUrl { Path = "/enterprise/" + name + ".html", Query = "questionId=" + Id.toString() };
        }

        /// <summary>
        /// 单选题编辑
        /// </summary>
        public webView.hashUrl RadioEdit
        {
            get { return get("singleEdit"); }
        }
        /// <summary>
        /// 多选题编辑
        /// </summary>
        public webView.hashUrl MultipleChoiceEdit
        {
            get { return get("mutiEdit"); }
        }
        /// <summary>
        /// 问答题编辑
        /// </summary>
        public webView.hashUrl QuestionEdit
        {
            get { return get("qaEdit"); }
        }
    }
}
